<style>
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row > .col-xs-4 {
        padding-right: 0;
    }

    .basicinfo .row > div {
        margin: 5px 0;
    }
</style>
<div id="content-container" class="container">
    <div class="row">
        <div class="col-md-3">
            {include file="common/sidenav" /}
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-body">
                    <h2 class="page-header">
                        {:__('投稿')}

                    </h2>
                    <div class="row user-baseinfo">


                        <div class="col-md-9 col-sm-9 col-xs-12">
                            <!-- Content -->
                            <div class="ui-content">
                                <div class="basicinfo">
                                    <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
                                            <div class="col-xs-12 col-sm-8">
                                                <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-2">{:__('分类')}:</label>
                                            <div class="col-xs-12 col-sm-8">
                                                <select id="c-pid" data-rule="required" class="form-control"  name="row[fenlei_id]">
                                                    <option  value="0" >选择分类</option>
                                                    {foreach name="parentList" item="vo"}
                                                    <option  value="{$vo.id}" {in name="key" value=""}selected{/in} >{$vo.title}</option>
                                                    {/foreach}
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-2">{:__('Path_imgimage')}:</label>
                                            <div class="col-xs-12 col-sm-8">
                                                <div class="input-group">
                                                    <input id="c-path_imgimage" data-rule="required" class="form-control" size="50" name="row[path_imgimage]" type="text" value="">
                                                    <div class="input-group-addon no-border no-padding">
                                                        <span><button type="button" id="faupload-path_imgimage" class="btn btn-danger faupload" data-input-id="c-path_imgimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-path_imgimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                                        <span><button type="button" id="fachoose-path_imgimage" class="btn btn-primary fachoose" data-input-id="c-path_imgimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                                    </div>
                                                    <span class="msg-box n-right" for="c-path_imgimage"></span>
                                                </div>
                                                <ul class="row list-inline faupload-preview" id="p-path_imgimage"></ul>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
                                            <div class="col-xs-12 col-sm-8">

                                                <div class="radio">
                                                    <label ><input id="row-shiping1" name="row[type]" type="radio" value="1" checked /> 图片</label>
                                                    <label ><input id="row-shiping2" name="row[type]" type="radio" value="2" /> 视频</label>
                                                </div>

                                            </div>
                                        </div>

                                        <div class="form-group" id="zhu1">
                                            <label class="control-label col-xs-12 col-sm-2">{:__('图片组')}:</label>
                                            <div class="col-xs-12 col-sm-8">
                                                <div class="input-group">
                                                    <input id="c-zhu_images"  class="form-control" size="50" name="row[zhu_images]" type="text" value="">
                                                    <div class="input-group-addon no-border no-padding">
                                                        <span><button type="button" id="faupload-zhu_images" class="btn btn-danger faupload" data-multiple="true" data-input-id="c-zhu_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-zhu_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                                        <span><button type="button" id="fachoose-zhu_images" class="btn btn-primary fachoose" data-multiple="true" data-input-id="c-zhu_images" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                                    </div>
                                                    <span class="msg-box n-right" for="c-zhu_images"></span>
                                                </div>
                                                <ul class="row list-inline faupload-preview" id="p-zhu_images"></ul>
                                            </div>
                                        </div>

                                        <div class="form-group" id="zhu2" hidden>
                                            <label class="control-label col-xs-12 col-sm-2">{:__('视频组')}:</label>
                                            <div class="col-xs-12 col-sm-8">
                                                <div class="input-group">
                                                    <input id="c-zhu_images2"  class="form-control" size="50" name="row[zhu_shiping_images]" type="text" value="">
                                                    <div class="input-group-addon no-border no-padding">
                                                        <span><button type="button" id="faupload-zhu_images2" class="btn btn-danger faupload" data-multiple="true" data-input-id="c-zhu_images2" data-mimetype="mp4" data-multiple="false" data-preview-id="p-zhu_images2"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                                        <span><button type="button" id="fachoose-zhu_images2" class="btn btn-primary fachoose" data-multiple="true" data-input-id="c-zhu_images2" data-mimetype="mp4/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                                    </div>
                                                    <span class="msg-box n-right" for="c-zhu_images"></span>
                                                </div>
                                                <ul class="row list-inline faupload-preview" id="p-zhu_images2"></ul>
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label class="control-label col-xs-12 col-sm-2">{:__('价格')}:</label>
                                            <div class="col-xs-12 col-sm-8">
                                                <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
                                            </div>
                                        </div>

                                        <div class="form-group layer-footer">
                                            <label class="control-label col-xs-12 col-sm-2"></label>
                                            <div class="col-xs-12 col-sm-8">
                                                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                                                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                            </div>
                                        </div>
                                    </form>

                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
